package com.dmz.oauth2.view;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.View;

public class JsonView implements View{
	public static final String DEFAULT_CONTENT_TYPE = "application/json";
	public String getContentType() {
		return DEFAULT_CONTENT_TYPE;//设置内容编码
	}

	
	@Override
	public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		response.getWriter().print("Hello and resolve this view!");
		
	}

}
